-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
delft: allow deployment through colemena #400
Conversation
Provide an output that translates nixosConfigurations to a colmena- compatible output. Colmena provides a convenient wrapper around building and deploying machines, than the bare nixos-rebuild we had been using up until now.
|
So you may want to grab a fresh copy of zhaofengli/colmena#198 it's really good. |
I think incremental improvements are fine. This looks decent, and I would like to defer to @zhaofengli regarding its integration in colmena. |
imo just copy the wrapper to your own repo because it's not obvious how this stuff can be made applicable to all repos with stuff like main vs master and so on, and the way the script works is relatively self-descriptive. It's in a contrib directory and licensed CC0 for that reason: it works perfectly but any properly generalized solution will be much harder to implement and one might want customization anyway, so it seems reasonable to just do an easy fix now and if a nicer feature happens, adopt that. bonus win with the script: you can easily modify it to nixos-rebuild as well, if you want. |
too bad colmena doesn't work for the macOS boxes, but it at least makes the NixOS boxes easier to deploy. |
In theory doesn't colmena only require SSH and a switch-to-configuration
script? It might not be impossible to make it work with nix-darwin.
|
Yes, I am planning to introduce generic hooks for "bring your own switch-to-configuration logic" for Liminix and others systems, we discussed it in https://matrix.to/#/!UKDpaKNNsBpOPfLWfX:zhaofeng.li/$DFKVuVYaMjCn1drriPf2xA9w9Qwl4yMB07dxnbQKgHM?via=nixos.org&via=matrix.org&via=nixos.dev FWIW. |
Provide an output that translates nixosConfigurations to a colmena- compatible output.
Colmena provides a convenient wrapper around building and deploying machines, than the bare nixos-rebuild we had been using up until now.